package com.ustudy.entity.cms;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.ustudy.core.dao.support.entity.StringIdEntity;

import com.ustudy.entity.commons.PathFile;

/**
 * 新闻滚动图片
 * @author Hector
 *
 */
@SuppressWarnings("serial")
@Entity(name="ArticlePhotos")
@Table(name="CMS_ARTICLE_PHOTOS")
public class ArticlePhotos extends StringIdEntity {
	
	private PathFile image;
	
	private Article article;
	
	private Long sortInfo=System.currentTimeMillis();
	
	@Column
	@Lob
	@Basic(fetch=FetchType.LAZY)
	private String body;

	public PathFile getImage() {
		return image;
	}

	public void setImage(PathFile image) {
		this.image = image;
	}

	public Article getArticle() {
		return article;
	}

	public void setArticle(Article article) {
		this.article = article;
	}

	public Long getSortInfo() {
		return sortInfo;
	}

	public void setSortInfo(Long sortInfo) {
		this.sortInfo = sortInfo;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}
}
